.page {
  padding: 20rpx;

  >.list {
    >.item {
      position: relative;
      background-color: #fff;
      border-radius: 12rpx;
      padding: 20rpx;
      margin-bottom: 40rpx;


      .room {
        width: 100%;

        .descriptions {
          .item {
            line-height: 50rpx;
            font-size: 28rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }

      }

      .series {
        display: flex;
        justify-content: space-between;
        margin-top: 30rpx;

        .item {
          background-color: #f1f2f4;
          width: calc(50% - 20rpx);
          text-align: center;
          border-radius: 12rpx;
          line-height: 66rpx;

          &.active {
            background-color: #57be6a;
            color: #fff;
          }
        }
      }

      .add {
        padding-top: 20rpx;
        display: flex;
        flex-wrap: wrap;
        button {
          font-size: 28rpx;
          margin-bottom: 20rpx;
          margin-right: 20rpx;
        }
      }

      .untie {
        position: absolute;
        top: 20rpx;
        right: 20rpx;
      }

      .cardFace-list {
        padding-bottom: 30rpx;

        button[type=warn] {
          background-color: #e8e8e8;

          &:active {
            background-color: #ccc;
          }
        }

        >.item {
          background-color: #f1f2f4;
          padding: 20rpx;
          border-radius: 12rpx;

          &.green {
            background-color: #9fce63;
          }

          &.blue {
            background-color: #b8c6e4;
          }

          &:nth-of-type(n+2) {
            margin-top: 50rpx;
            border-top: 1px solid #eee;
          }

          .descriptions {
            .item {
              line-height: 50rpx;
              font-size: 28rpx;
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin: 20rpx 0;

              .del-edit {
                display: flex;
                align-items: center;

                button {
                  margin-left: 20rpx;
                }
              }
            }
          }

          .state {
            display: flex;
            align-items: center;

            .error-bind {
              margin-left: 20rpx;

              button {
                margin-right: 20rpx;
              }
            }
          }

          .elev-list {
            margin-left: 40rpx;
            margin-top: 40rpx;
            .item {
              display: flex;
              align-items: center;
              justify-content: space-between;
              margin: 20rpx 0;

              .name {
                font-weight: bold;
                font-size: 26rpx;
                max-width: 150rpx;
                margin-right: 20rpx;
              }
              .state-time{
                font-size: 26rpx;
                display: flex;
                .state{
                  margin-right: 20rpx;
                }
              }

              button {
                margin: 0;
              }
            }
          }
        }
      }
    }
  }


  .list-empty {
    text-align: center;

    image {
      height: 180rpx;
      width: 180rpx;
      margin: 0 auto;
      display: block;
    }

    .label {
      font-size: 24rpx;
      width: 550rpx;
      margin: 0 auto;
      text-align: center;
      margin-top: 10rpx;
      color: #9295a8;
    }

    button {
      background: #00aeff;
      width: 90%;
      margin: 5%;
      color: #FFFFFF;
    }
  }

  >.remark {
    margin-bottom: 40rpx;

    .title {
      font-size: 40rpx;
    }

    text {
      display: block;
      font-size: 28rpx;
      line-height: 50rpx;
      margin-top: 20rpx;
      color: burlywood;
    }
  }

  // 添加和修改卡号
  .add-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;

    .body {
      width: calc(100% - 40rpx);
      margin-left: 20rpx;
      background-color: #fff;
      border-radius: 12rpx;
      box-sizing: border-box;
      margin-top: -20vh;

      >.title {

        border-bottom: 1px solid #eee;
        padding: 20rpx;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .label {
          font-size: 36rpx;
        }

        .auto-card {
          color: #1989fa;
        }
      }

      .form {
        padding: 20rpx;

        .input {
          display: flex;
          line-height: 70rpx;
          align-items: center;
          margin-bottom: 40rpx;

          .label {
            width: 120rpx;
            text-align: right;
            margin-right: 20rpx;
            color: #666;
          }

          input {
            border-radius: 12rpx;
            height: 75rpx;
            padding: 0 20rpx;
            box-sizing: border-box;
            font-size: 26rpx;
            width: calc(100% - 140rpx);
            background-color: #f6f6f6;
          }
        }

        .submit {
          margin-left: 100rpx;
          margin-top: 20rpx;
          margin-bottom: 10rpx;

          button {
            margin: 0 20rpx;
            padding: 0 60rpx;
            line-height: 60rpx;
          }
        }
      }
    }
  }

  .edit-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;

    .body {
      width: calc(100% - 40rpx);
      margin-left: 20rpx;
      background-color: #fff;
      border-radius: 12rpx;
      box-sizing: border-box;
      margin-top: -20vh;

      >.title {

        border-bottom: 1px solid #eee;
        padding: 20rpx;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .label {
          font-size: 36rpx;
        }

      }

      .form {
        padding: 20rpx;

        .input {
          display: flex;
          line-height: 70rpx;
          align-items: center;
          margin-bottom: 40rpx;

          .label {
            width: 120rpx;
            text-align: right;
            margin-right: 20rpx;
            color: #666;
          }

          input {
            border-radius: 12rpx;
            height: 75rpx;
            padding: 0 20rpx;
            box-sizing: border-box;
            font-size: 26rpx;
            width: calc(100% - 140rpx);
            background-color: #f6f6f6;
          }
        }

        .submit {
          margin-left: 100rpx;
          margin-top: 20rpx;
          margin-bottom: 10rpx;

          button {
            margin: 0 20rpx;
            padding: 0 60rpx;
            line-height: 60rpx;
          }
        }
      }
    }
  }



  // 添加人脸
  .add-face {
    position: relative;
    height: 80vh;

    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #eee;

    .agreement {
      line-height: 60rpx;
      padding: 20rpx;
      padding-bottom: 320rpx;

      .h3 {
        font-weight: bold;
      }

      .h2 {
        font-weight: bold;
        font-size: 36rpx;
        margin: 20rpx 0;
      }
    }

    .consent {
      position: fixed;
      width: 100%;
      background-color: #fff;
      padding: 40rpx;
      padding-bottom: 70rpx;
      box-sizing: border-box;
      bottom: 0;

      .remark {
        display: flex;
        line-height: 70rpx;
        align-items: center;
        margin-bottom: 40rpx;

        .label {
          width: 100rpx;
          text-align: right;
          margin-right: 20rpx;
          color: #666;
        }

        .value {
          width: 100%;

          input {
            border-radius: 12rpx;
            height: 75rpx;
            padding: 0 20rpx;
            box-sizing: border-box;
            font-size: 26rpx;

            background-color: #f6f6f6;
          }
        }
      }

      .check-photo {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
    }

    .camera {
      camera {
        width: 600rpx;
        height: 600rpx;
        border-radius: 50%;
        margin: 20px auto 0;
      }

      .btn {
        button {
          margin-top: 40rpx;
        }
      }

      .note {
        width: 80%;
        margin: 0 auto;
        text-align: center;
        margin-top: 30rpx;

        text {
          display: block;
          line-height: 50rpx;
        }
      }
    }

    .camera-image {
      .img {
        width: 600rpx;
        height: 600rpx;
        border-radius: 50%;
        margin: 20px auto 0;
        overflow: hidden;

        image {
          width: 100%;
        }
      }

      .btn {
        button {
          margin-top: 40rpx;
        }
      }
    }
  }
}